{if $total}
    
{include file="guestbook/default/list/pagination.tpl"}
    
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="list">

    {foreach from=$entries item="entry"}
    <tr>
        <td align="left" valign="middle" id="guest_address">
            {if $entry.location}{$entry.location|escape}{/if} 
            [{$entry.created_at|datetime}]
        </td>
        
        <td align="right" valign="middle" id="guest_nickname">
            {$entry.name|escape}
        </td>
        <td width="5" style="background-color: #f7ac13"></td>
    </tr>
    <tr>
        <td align="left" colspan="3" id="guest_message">
            {$entry.message|escape|nl2br}
        </td>
    </tr>
    {/foreach}

</table>

{include file="guestbook/default/list/pagination.tpl"}

{/if}